package com.example.diyview.Utils;

import android.content.Context;

import com.example.diyview.MyApp;

public class SizeUtils {
 private static Context context = MyApp.FindAllContext();
    public static int dp2px(float dpValue){
        float scale = context.getResources().getDisplayMetrics().density;
        return (int)(dpValue*scale+0.5f);
    }
}
